

{{nocache}}

<div class="loginfo">
  <div id="auto"> {{$user=$session.user_info}}
    <div id="conbo member" class="top_login"> 
    {{if !$user}} <span>用户名：</span>
      <input type="text" name="email"/>
      <span>密码：</span>
      <input type="password" name="passwd"/>
      <input type="hidden" name="field" value='user_name'/>
      <a class="pointer topa marginboth" onclick="Main.login('.top_login')">登录</a><a class="topa marginboth" href="main.php?act=user&user_act=register">注册</a> <a class="topa marginboth" href="main.php?act=reset_passwd">忘记密码?</a> {{else}} 
      
      <!--<div class="memimg"><img src="{{$user.avater}}" width="87" height="96"/></div>--> 
      <span class="welcome">欢迎您：<strong>{{$user.user_name}}</strong> <em onclick="location.href='main.php?act=user&user_act=register&user_id={{$user.user_id}}'" class="pointer">修改</em> <em onclick="location.href='main.php?act=log_out'" class="pointer">退出</em> </span>
      <ul class="topnavaga">
        <li> <a class="topa" href="main.php?act=user&user_act=register&user_id={{$user.user_id}}">我的账号</a>
          <div> {{if !$user.mag}} <a href="main.php?act=user&user_act=steps_a">我要建队</a>{{/if}} <a href="main.php?act=user&user_act=user_order">我的订单</a> {{if $user.status==1}} <a href="main.php?act=gold&type=user">我的青币</a> 
           <a href="main.php?act=user&user_act=wishlist">我的关注</a> 
          
          {{if $is_qiandao}} <a  class="adthiscla">已签到</a> {{else}} <a onclick="user.qiandao()" class="pointer">签到</a> {{/if}}
            
            {{/if}} </div>
        </li>
      </ul>
      <a class="topa newpm hide"  href="ucenter/mainapi/?example=pmwin" target="_blank"><strong class="text-danger"></strong> 消息</a> 
      {{if $user.cat_id}}
      <ul class="topnavaga">
        <li> <a class="topa" href="category.php?cat_id={{$user.cat_id}}">我的团队</a>
          <div> {{if $user.mag}} <a  href="main.php?act=user&user_act=steps_a&c_id={{$user.cat_id}}">团队管理</a> 
          <a  href="main.php?act=goods_edit&c_id={{$user.cat_id}}" >添加产品</a> 
          <a  href="category.php?cat_id={{$user.cat_id}}#products" >修改产品</a>
          {{/if}} </div>
        </li>
      </ul>
      {{/if}}
      
      {{/if}} 
      <ul class="topnavaga">
        <li> <a class="topa">让我帮您</a>
        	
          <div style="width:auto;position:relative;left:30px; width:150px;">  
          	<a style="line-height:15px;">联系热线：<br />010-68946669-5981</a> 
          <a  href="main.php?act=software" target="_blank">新手训练营</a> 
           <a class=" pointer" onclick="chat()"  >在线问答</a> 
           </div>
        </li>
      </ul>
      <ul class="topnavaga ">
        <li> <a class="topa">讨论话题</a>
        	
          <div style="width:auto;position:relative;left:30px; width:150px;">  
          
           <a class=" pointer" onclick="chat(1)"  >第一期</a> 
           <a class=" pointer" onclick="chat(2)"  >第二期</a> 
           <a class=" pointer" onclick="chat(3)"  >第三期</a> 
           <a class=" pointer" onclick="chat(4)"  >第四期</a> 
          
           </div>
        </li>
      </ul>
      
     <a class="topa"  href="category.php?cat_id={{$smarty.const.JF_MALL_ID}}" target="_blank">青币商城</a> 
     <a class="topa"  href="main.php?act=add_message" target="_blank">问题反馈</a> 
      
     
     
     
      </div>
  </div>
</div>
<div id="headcon" {{if $cat_type==1}}style=" background: url({{$t_path}}/images/headerhb.png) no-repeat scroll center top ;"{{/if}}>
<div class="left"> 
{{if $cat_type==0}}<a class="btn btnjy" href="index.php?cat_type=1">精益行动</a>
{{else}}
<a class="btn btnxq" href="index.php?cat_type=0">团聚小区</a> 
<a class="jilie" href="http://dq.cmbc.com.cn/lean"></a>
{{/if}}
</div>
  <div id="auto">
    <div id="conbo">
      
      <div class="numbercount">
        <dl>
          <dt>我们已有</dt>
          <dd><span>{{$counts.format.cat_count}}</span><em>个团队</em></dd>
          <dd><span>{{$counts.format.goods_count}}</span><em>套产品</em></dd>
          <dd><span>{{$counts.format.user_count}}</span><em>位用户</em></dd>
        </dl>
      </div>
    </div>
  </div>
</div>
<!--headcon end--> 

{{/nocache}}

{{if $user.pa}}
{{$user.info = ''}}
<script>
$(function(){
	var data = 'data={{json_encode($user)}}';
	Main.AJAX('./ucenter/mainapi/',data,setDataRes);
})
function setDataRes(res){
	var res = $.parseJSON(res);
	if(res.newpm.newpm)
		$(".newpm strong").html(res.newpm.newpm);
	
}
function openChat(user){
	window.open('ucenter/mainapi/?example=pmwin&m=send&toUser='+user,'newwindow','height=800, width=648, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no');
}
</script>
{{/if}}

